//
//  LLNWFileUploadManager+LLConfigServer.m
//  LLFoundation
//
//  Created by my_liu on 2016/11/14.
//  Copyright © 2016年 . All rights reserved.
//

#import "LLNWFileUploadManager+LLConfigServer.h"
#import "LLNWConstantManager.h"

@implementation LLNWFileUploadManager (LLConfigServer)

+ (LLNWFileUploadManager *)uploadManagerForWanMeiServer
{
    LLNWConstantManager *constManager = [LLNWConstantManager share];
    
    LLNWFileUploadManager *uploadManager = [[LLNWFileUploadManager alloc]init];
    
    /* 设定主机 */
    [uploadManager setDefaultHostUrl:constManager.llnwserverDomain];
    
    /* 设定默认Header */
    NSMutableDictionary *defaultHeaders = [NSMutableDictionary dictionary];
    [defaultHeaders setObject:constManager.llnwagency  forKey:@"agency"];
    [defaultHeaders setObject:constManager.llnwclientAgent forKey:@"clientAgent"];
    [defaultHeaders setObject:constManager.llnwcustomId forKey:@"customerId"];
    [defaultHeaders setObject:constManager.llnwdataVersion forKey:@"CUData-Version"];
    [defaultHeaders setObject:constManager.llnwversionId forKey:@"versionId"];
    [defaultHeaders setObject:@"Generic/iphone" forKey:@"model"];
    
    [uploadManager setDefaultRequestHeader:defaultHeaders];
    
    /* 没有默认参数 */
    [uploadManager setDefaultRequestParams:[NSMutableDictionary dictionary]];
    
    return uploadManager;
}
@end
